home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 1.iso / dist / fw_galeon.idb / usr / freeware / bin / galeon.z / galeon
Text File  |  2002-10-07  |  1KB  |  45 lines

  1. #!/bin/sh
  2.  
  3. dist_bin=`dirname $0`
  4.  
  5. if test -n "$MOZILLA_FIVE_HOME"; then
  6.     MOZILLA_HOME=$MOZILLA_FIVE_HOME
  7. elif [ -f /xlv1/freeware/2002.Nov/galeon/1.2.5-root/usr/freeware/mozilla/chrome/comm.jar ]; then
  8.     MOZILLA_HOME=/xlv1/freeware/2002.Nov/galeon/1.2.5-root/usr/freeware/mozilla
  9. elif [ -f /usr/freeware/mozilla/chrome/comm.jar ]; then
  10.     MOZILLA_HOME=/usr/freeware/mozilla
  11. elif [ -f /usr/local/mozilla/chrome/comm.jar ]; then
  12.     MOZILLA_HOME=/usr/local/mozilla
  13. elif [ -f /usr/lib/mozilla/chrome/comm.jar ]; then
  14.     MOZILLA_HOME=/usr/lib/mozilla
  15. elif [ -f /opt/mozilla/chrome/comm.jar ]; then
  16.     MOZILLA_HOME=/opt/mozilla
  17. elif [ -f /usr/lib/mozilla-0.9.7/chrome/comm.jar ]; then
  18.     MOZILLA_HOME=/usr/lib/mozilla-0.9.7/
  19. elif [ -f /opt/gnome/lib/mozilla/chrome/comm.jar ]; then
  20.         MOZILLA_HOME=/opt/gnome/lib/mozilla/
  21. else
  22.     echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
  23.     exit
  24. fi
  25.  
  26. LD_LIBRARYN32_PATH=$MOZILLA_HOME:$LD_LIBRARYN32_PATH
  27. export LD_LIBRARYN32_PATH
  28.  
  29. MOZILLA_FIVE_HOME=$MOZILLA_HOME
  30. export MOZILLA_FIVE_HOME
  31.  
  32. # for some reason this lets Galeon start properly on Red Hat 7.1 systems
  33. if [ -f /etc/redhat-release ]; then
  34.     if [ "`cat /etc/redhat-release`" = "Red Hat Linux release 7.1 (Seawolf)"  ]; then
  35.         export LD_ASSUME_KERNEL=2.2.5
  36.     fi
  37. fi
  38.  
  39. if [ -f ./galeon-bin ]; then
  40. exec ./galeon-bin "$@"
  41. else
  42. exec $dist_bin/galeon-bin "$@"
  43. fi
  44.  
  45.